package com.github.linmt.dbdoc4j.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * User: Linmt
 * Date: 2022/12/1
 * Time: 21:05
 * Description: 数据库文档配置类
 */
@ConfigurationProperties(
        prefix = "dbdoc4j"
)
public class Dbdoc4jProperties {
    private Boolean enable = false;
    private String driverClassName;
    private String url;
    private String username;
    private String password;
    private String includeTable;
    private String excludeTable;
    private List<GroupInfo> groups = new ArrayList<>();

    public static class GroupInfo {
        private String groupName;
        private String driverClassName;
        private String url;
        private String username;
        private String password;
        private String includeTable;
        private String excludeTable;

        public String getGroupName() {
            return groupName;
        }

        public void setGroupName(String groupName) {
            this.groupName = groupName;
        }

        public String getDriverClassName() {
            return driverClassName;
        }

        public void setDriverClassName(String driverClassName) {
            this.driverClassName = driverClassName;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getIncludeTable() {
            return includeTable;
        }

        public void setIncludeTable(String includeTable) {
            this.includeTable = includeTable;
        }

        public String getExcludeTable() {
            return excludeTable;
        }

        public void setExcludeTable(String excludeTable) {
            this.excludeTable = excludeTable;
        }
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public List<GroupInfo> getGroups() {
        return groups;
    }

    public void setGroups(List<GroupInfo> groups) {
        this.groups = groups;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIncludeTable() {
        return includeTable;
    }

    public void setIncludeTable(String includeTable) {
        this.includeTable = includeTable;
    }

    public String getExcludeTable() {
        return excludeTable;
    }

    public void setExcludeTable(String excludeTable) {
        this.excludeTable = excludeTable;
    }
}
